home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / X_.H < prev    next >
C/C++ Source or Header  |  1992-03-04  |  4KB  |  114 lines

  1. /* Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.  */
  19.  
  20. /* x_.h */
  21. /* Header for including X library calls in Ghostscript X11 driver */
  22.  
  23. #ifdef VMS
  24.  
  25. #  ifdef __GNUC__
  26.  
  27. /*   Names of external functions which contain upper case letters are
  28.  *   modified by the VMS GNU C compiler to prevent confusion between
  29.  *   names such as XOpen and xopen.  GNU C does this by translating a
  30.  *   name like XOpen into xopen_aaaaaaaax with "aaaaaaaa" a hexadecimal
  31.  *   string.  However, this causes problems when we link against the
  32.  *   X library which doesn't contain a routine named xopen_aaaaaaaax.
  33.  *   So, we use #define's to map all X routine names to lower case.
  34.  *   (Note that routines like BlackPixelOfScreen, which are [for VMS]
  35.  *   preprocessor macros, do not appear here.)
  36.  */
  37.  
  38. /*
  39.  * The names redefined here are those which the current Ghostscript X11
  40.  * driver happens to use: this list may grow in the future.
  41.  */
  42.  
  43. #    define XAllocColor            xalloccolor
  44. #    define XAllocNamedColor        xallocnamedcolor
  45. #    define XChangeProperty        xchangeproperty
  46. #    define XCloseDisplay        xclosedisplay
  47. #    define XCopyArea            xcopyarea
  48. #    define XCreateGC            xcreategc
  49. #    define XCreatePixmap        xcreatepixmap
  50. #    define XCreateWindow        xcreatewindow
  51. #    define XDisplayString        xdisplaystring
  52. #    define XDrawLine            xdrawline
  53. #    define XFillPolygon        xfillpolygon
  54. #    define XFillRectangle        xfillrectangle
  55. #    define XFillRectangles        xfillrectangles
  56. #    define XFlush            xflush
  57. #    define XFreeGC            xfreegc
  58. #    define XFreePixmap            xfreepixmap
  59. #    define XGeometry            xgeometry
  60. #    define XGetDefault            xgetdefault
  61. #    define XGetRGBColormaps        xgetrgbcolormaps
  62. #    define XGetVisualInfo        xgetvisualinfo
  63. #    define XGetWindowAttributes    xgetwindowattributes
  64. #    define XGetWindowProperty        xgetwindowproperty
  65. #    define XInternAtom            xinternatom
  66. #    define XMapWindow            xmapwindow
  67. #    define XNextEvent            xnextevent
  68. #    define XOpenDisplay        xopendisplay
  69. #    define XPutImage            xputimage
  70. #    define XSendEvent            xsendevent
  71. #    define XSetBackground        xsetbackground
  72. #    define XSetClipMask        xsetclipmask
  73. #    define XSetClipOrigin        xsetcliporigin
  74. #    define XSetFillStyle        xsetfillstyle
  75. #    define XSetForeground        xsetforeground
  76. #    define XSetFunction        xsetfunction
  77. #    define XSetLineAttributes        xsetlineattributes
  78. #    define XSetNormalHints        xsetnormalhints
  79. #    define XSetTile            xsettile
  80. #    define XSetWindowBackgroundPixmap    xsetwindowbackgroundpixmap
  81. #    define XSync            xsync
  82. #    define XVisualIDFromVisual        xvisualidfromvisual
  83. #    define XmuLookupStandardColormap    xmulookupstandardcolormap
  84.  
  85. #  endif                /* ifdef __GNUC__ */
  86.  
  87. #  include <decw$include/Xlib.h>
  88. #  include <decw$include/Xatom.h>
  89. #  include <decw$include/Xutil.h>
  90. #  include <decw$include/Intrinsic.h>
  91. /* Include standard colormap stuff only for X11R4 and later. */
  92. #  if defined(XtSpecificationRelease) && (XtSpecificationRelease >= 4)
  93. #    define HaveStdCMap 1
  94. #    include <decw$include/Xmu/StdCmap.h>
  95. #  endif
  96.  
  97. #else                    /* !ifdef VMS */
  98.  
  99. #  include <X11/Xlib.h>
  100. #  include <X11/Xatom.h>
  101. #  include <X11/Xutil.h>
  102. #  include <X11/Intrinsic.h>
  103. /* Include standard colormap stuff only for X11R4 and later. */
  104. #  if defined(XtSpecificationRelease) && (XtSpecificationRelease >= 4)
  105. #    define HaveStdCMap 1
  106. #    include <X11/Xmu/StdCmap.h>
  107. #  endif
  108.  
  109. #endif                    /* VMS */
  110.  
  111. #ifndef HaveStdCMap
  112. #  define HaveStdCMap 0
  113. #endif
  114.